<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>{$SEO.title|default=''}</title>
	<meta name="keywords" content="{$SEO.keywords|default=''}"/>
	<meta name="description" content="{$SEO.description|default=''}"/>
	<meta name="viewport" content="width=device-width; initial-scale=1.0" />	
	<link rel="stylesheet" href="__RES__/common/base.css" />
	<link rel="stylesheet" href="__RES__/home/css/common.css" />	
	{block name="head"}{/block}
</head>
<body>	
	
	{if condition="is_module_install('member')"}	
		<div id="top">		
			<div class="allWrap">
				<ul class="left">
					{if condition="member('uid')"}
						<li><a href="{:url('member/order_member/index')}">会员中心</a></li>
						<li><a href="{:url('/logout')}">退出</a></li>
					{else /}
						<li><a class="pointer" id="reg">注册</a></li>
						<li><a class="pointer" id="login">登录</a></li>
					{/if}
				</ul>
				<ul class="right">
					<li id="cart">
						 购物车(<a href="{:url('/cart')}"> {if condition="session('total')"}{$Think.session.total} {else/}0{/if} </a>)
					</li>
				</ul>
				<div class="clearfix"></div>
			</div>
		</div>
	{/if}
	
	<div id="header" class="allWrap">
		<ul id="home">
			<li><a href="{$Request.root.true}">首页</a></li>
		</ul>  
		<ul class="nav">
		{volist name="top_nav" id="category"}
			<li><a href="{:url('/category/'.$category['id'])}">{$category.name}</a>
				{if condition="isset($category['children'])"}
					<ul>
					{volist  name="$category['children']" id="children"}
						<li><h3><a href="{:url('/category/'.$children['id'])}">{$children.name}</a></h3></li>				
					{/volist}
					</ul>
				{/if}
			</li>
		{/volist}
		</ul>
	</div>	
	
	{block name="content"}
			
	{/block}
		
	<div id="footer">
		<div class="allWrap">
		<p>Copyright © 2015-<?php echo date('Y',time()); ?> {$Think.config.SITE_TITLE}  {$Think.config.SITE_URL} All Rights Reserved. 备案号：{$Think.config.SITE_ICP} </p>
		</div>
	</div>	
</body>

{block name="jquery"}
<script src="__PUBLIC__/js/jquery/jquery-2.0.3.min.js"></script>
<script src="__PUBLIC__/js/jquery/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/artDialog/iframeTools.js"></script>
<link href="__PUBLIC__/artDialog/skins/default.css" rel="stylesheet" type="text/css" />	
<script src="__RES__/home/js/common.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?32e3cb4cf7e5c6772c4dc1f5d496b6af";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
{/block}
{block name="javascript"}{/block}
</html>